import React, { memo } from "react";
import UserCard from "@/components/UserCard";
import { useGetUserList } from "@/hooks/useGetUserList";
import BossWrapper from "./style";

const Boss = memo((props) => {
  let list = useGetUserList({ type: "boss" });
  return (
    <BossWrapper>
      {list.length ? (
        <UserCard userList={list}></UserCard>
      ) : (
        <div>"暂无内容"</div>
      )}
    </BossWrapper>
  );
});


export default Boss;
